{% extends "base.html" %}
{% load i18n %}

{% block subtitle %} | {% trans 'Password reset' %}{% endblock %}

{% block content %}

{% if validlink %}

<h1>{% trans 'Enter new password' %}</h1>

<p class="center">{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>

<form action="" method="post">{% csrf_token %}
<table style="margin: auto auto;">
	<tr><td colspan="2">{{ form.new_password1.errors }}</td></tr>
	<tr><td><label for="id_new_password1">{% trans 'New password:' %}</label></td><td>{{ form.new_password1 }}</td></tr>
	<tr><td colspan="2">{{ form.new_password2.errors }}</td></tr>
	<tr><td><label for="id_new_password2">{% trans 'Confirm password:' %}</label></td><td>{{ form.new_password2 }}</td></tr>
	<tr><td colspan="2"><input type="submit" value="{% trans 'Change my password' %}"></td></tr>
</form>

{% else %}

<h1>{% trans 'Password reset unsuccessful' %}</h1>

<p class="center">{% trans "The password reset link was invalid, possibly because it has already been used.  Please request a new password reset." %}</p>

{% endif %}

{% endblock %}
